
/**
 * sysPermissionService
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:资源管理管理
 * 
 * 历史版本:2017-03-28 v1.0.0 lunli  创建:
 * 
 */
package com.fmjr.sys.sysPermission.service;

import com.fmjr.common.base.exception.BusinessException;
import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysPermission.bean.SysPermission;

import java.util.List;


public interface ISysPermissionService{

	/**
	 * 根据条件查询资源管理记录
	 * @author lunli
	 * @param  Pager<SysPermission> pager
	 * @return SysPermissionList
	 * @throws BusinessException
	 */
	public void selectSysPermissionList(Pager<SysPermission> pager) throws BusinessException;
	
	/**
	 * 根据ID查询资源管理记录
	 * @author lunli
	 * @param Long id
	 * @return SysPermission
	 * @throws BusinessException
	 */
	public SysPermission selectSysPermissionById(Long id) throws BusinessException;

	/**
	 *  删除资源管理记录
	 * @author lunli	 
	 * @param id
	 * @throws BusinessException
	 */
	public int deleteSysPermissionById(Long id) throws BusinessException;
	
	/**
	 * 修改资源管理记录
	 * @author lunli
	 * @param sysPermission
	 * @throws BusinessException
	 */
	public int updateSysPermission(SysPermission sysPermission) throws BusinessException;

	/**
	 * 新增资源管理记录
	 * @author lunli
	 * @param sysPermission
	 * @return
	 * @throws BusinessException
	 */
	public int createSysPermission(SysPermission sysPermission) throws BusinessException;
	
	
	
	/**
	 * 根据角色编号  获取资源
	 * @param roleId
	 * @return
	 * @throws BusinessException
	 */
	public List<SysPermission> searchPermissionByRoleId(Long roleId) throws BusinessException;
	
	
	/**
	 * 根据角色编号  获取资源
	 * @param roleId
	 * @return
	 * @throws BusinessException
	 */
	public List<SysPermission> getSysPermissionAll() throws BusinessException;
	
	

}
